#页面类：首页
from selenium.webdriver.common.by import By

from utils.page_base import PageBase #导入页面基类

class PageIndex(PageBase):
    url="/"
    loc_loginButton=By.XPATH,"//a[@href='/simple/login' and text()='登录']"


    def __init__(self,driver,base_url):
        PageBase.__init__(self,driver,base_url)

    #UI操作：打开本网页
    def openUrl(self):
        self.open(PageIndex.url)

    #UI操作：点击的“登录”按钮
    def click_loginButton(self):
        self.click(PageIndex.loc_loginButton)
